<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="com.zhouchao.bean.Admin" %>
<%@ page import="com.zhouchao.bean.DormManager" %>
<%@ page import="com.zhouchao.bean.Student" %>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>宿舍管理系统</title>
<link href="${pageContext.request.contextPath}/style/dorm.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" type="text/css" href="http://sandbox.runjs.cn/uploads/rs/238/n8vhm36h/dataTables.bootstra.css">
<link rel=Shortcut Icon href= >

<script type="text/javascript" src="http://sandbox.runjs.cn/uploads/rs/238/n8vhm36h/jquery.js"></script>
<script type="text/javascript" src="http://sandbox.runjs.cn/uploads/rs/238/n8vhm36h/jquery.dataTables.js"></script>
<script type="text/javascript" src="http://sandbox.runjs.cn/uploads/rs/238/n8vhm36h/bootstrap.min.js"></script>
<script type="text/javascript" src="http://sandbox.runjs.cn/uploads/rs/238/n8vhm36h/dataTables.bootstrap.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.fr.js" charset="UTF-8"></script>
<script src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.js"></script>

<script type="text/javascript"><!--
	$(document).ready(function(){
   	 	$("#DataTables_Table_0_wrapper .row-fluid").remove();
	});
	
	
	function openWindow(){
	var n=null;
		var top=300;
		var left=800;
		var options="width="+500+",height="+400+",";
		options +="toolbar=no,location=no,status=no,scrollbars=yes,";
		options +="directories=no,top="+top+",left="+left;
		if(n=="")
		{
		var date=new Date();
		n=date.getSeconds();
		
		}
		n=n+"ab";
		//showModalDialog('./tool/calendar.jsp','example04','dialogWidth:400px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes');
		//showModelessDialog('./tool/calendar.jsp','example05','dialogWidth:400px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes');
		var newWin=window.open('./tool/rili.jsp',n,options);
		newWin.focus();

	}
--></script>
		<script type="text/javascript">
		
			function disptime(){
var today = new Date(); //获得当前时间

var y=today.getFullYear();
var m=today.getMonth()+1;
var dd=today.getDate();
var hh = today.getHours(); //获得小时、分钟、秒
var mm = today.getMinutes();
var ss = today.getSeconds();

 if(hh<10) hh="0"+hh;
         	if(mm<10) mm="0"+mm;
         	if(ss<10) ss="0"+ss;
/*设置div的内容为当前时间*/
document.getElementById("myclock").innerHTML="今天是："+y+"年"+m+"月"+dd+"日"+hh+":"+mm+":"+ss+"";
/*
使用setTimeout在函数disptime()体内再次调用setTimeout
设置定时器每隔1秒（1000毫秒），调用函数disptime()执行，刷新时钟显示
*/
var myTime=setTimeout("disptime()",1000);
}    
	$(document).ready(function() {
		$("#DataTables_Table_0_wrapper .row-fluid").remove();
	});
	
</script>

<style type="text/css">
	  .bs-docs-sidenav {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.067);
    padding: 0;
    width: 228px;
}

.bs-docs-sidenav > li > a {
    border: 1px solid #e5e5e5;
    display: block;
    padding: 8px 14px;
    margin: 0 0 -1px;
}
.bs-docs-sidenav > li:first-child > a {
    border-radius: 6px 6px 0 0;
}
.bs-docs-sidenav > li:last-child > a {
    border-radius: 0 0 6px 6px;
}
.bs-docs-sidenav > .active > a {
    border: 0 none;
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.1) inset, -1px 0 0 rgba(0, 0, 0, 0.1) inset;
    padding: 9px 15px;
    position: relative;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
    z-index: 2;
}
.bs-docs-sidenav .icon-chevron-right {
    float: right;
    margin-right: -6px;
    margin-top: 2px;
    opacity: 0.25;
}
.bs-docs-sidenav > li > a:hover {
    background-color: #f5f5f5;
}
.bs-docs-sidenav a:hover .icon-chevron-right {
    opacity: 0.5;
}
.bs-docs-sidenav .active .icon-chevron-right, .bs-docs-sidenav .active a:hover .icon-chevron-right {
    background-image: url("../img/glyphicons-halflings-white.png");
    opacity: 1;
}



</style>

</head>
<body onload="disptime()">
<table width="100%" border="3" align="center" cellpadding="0" cellspacing="0">
<tr>
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0">

  <tr>
    <td height="100" valign="top" background='images/top.jpg' bgcolor="#EEEEEE"><table width="100%" height="33"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="50%" height="10"></td>
        <td colspan="2"></td>
      </tr>
      <tr>
        <td height="20">&nbsp;</td>
       
        <td width="35%">
         <a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://localhost:8080/dorm');"> <font color="white">设为主页 -</font></a>
                    <a href="javascript:window.external.AddFavorite('http://localhost:8080/dorm','学生寝室管理系统')"> <font color="white">收藏本页 -</font></a>
                    <a href="http://zhouchao@dorm.com.cn"> <font color="white">联系我们</font></a>
        </td>
        <td width="15%">
        <a href="#" onClick="window.location.reload();" > <font color="white">刷新页面-</font></a>
        <a href="#" onClick="myclose()" > <font color="white">关闭系统</font></a></td>
		
		<script language="javascript">
			function myclose(){
				if(confirm("真的要关闭当前窗口吗?")){
					window.close();
				}
			}
		</script>
        </tr>
    </table>
      <table width="93%" height="79"  border="0" cellpadding="0" cellspacing="0">
        <tr>
        <td></td>
          <td height="69" align="right" valign="bottom" bgcolor=""><font color="#ccff00">当前登录用户：${currentUser.name }&nbsp;&nbsp;&nbsp;&nbsp;<span id="myclock"></span></font></td>
        </tr>
    </table></td>
  </tr>
</table>
</tr>
<tr>
<td>
<MARQUEE direction="left" height=30 scrollAmount=22 scrollDelay=160 width="100%">

<CENTER><FONT color=#ffaa00 face=黑体 size=5>恭喜212寝室在本周卫生评比中获得第一名</FONT>
</CENTER></MARQUEE>
</td>
</tr>
</table>

	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span2 bs-docs-sidebar" >
			<font color="#004790"><b>■导航</b></font>
				<ul class="nav nav-list bs-docs-sidenav">
				
					<li><a href="blank"><i class="icon-chevron-right"></i>首页</a></li>
					<li><a href="student?action=stulist&stunum=${currentUser.stuNumber }"><i class="icon-chevron-right"></i>个人信息</a></li>
					<li><a href="record?action=list"><i class="icon-chevron-right"></i>缺勤记录</a></li>
					<li><a href="repair?action=stulist&name=${currentUser.name }&id=${currentUser.dormBuildId}&room=${currentUser.dormName}">
					<i class="icon-chevron-right"></i>我的报修</a></li>
					<li><a href="score?action=stulist"><i class="icon-chevron-right"></i>卫生评比</a></li>
					<li><a href="password?action=preChange"><i class="icon-chevron-right"></i>修改密码</a></li>
					<li><a href="exit" onclick="return confirm('确定要退出系统吗？')"><i class="icon-chevron-right"></i>退出系统</a></li>
				</ul>
				<br>
				<div>
				<font color="#004790"><b>■友情链接</b></font>
				<div><a href="#"  > <font color="#004790">学校主页</font></a></div>
				<div ></div>
				
				</div>
				<br>
				<div>
				<font color="#004790"><b>■日历</b></font>
				<div><a href="#" onClick="openWindow()" > <font color="#004790">详细浏览</font></a></div>
				
				<div ></div>
				<jsp:include page='/tool/calendar.jsp'/>
				</div>
				
				
		
			
				
				
				</div>
					<div class="span10">
						<jsp:include page="${mainPage==null?'blank':mainPage}"></jsp:include>
					</div>
			</div>
		</div>
		

<tr>
<br>
<div id="footer" align="center"><a href="http://localhost:8080/dorm/tool/zhouchao.htm" target="_blank">关于我们</a>
&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://localhost:8080/dorm/tool/glzd.htm" target=”_blank">管理制度</a>
&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.ahtcm.edu.cn" target="_blank">学校主页</a>
&nbsp;&nbsp;Copyright&copy;&nbsp;2015 AHCM&nbsp;All Rights Reserved.&nbsp;
<a href="http://www.miibeian.gov.cn/" target="_blank" id="ft_icp">皖vip证888888号</a>
<br>设计开发：周超   &nbsp;&nbsp;   指导老师:李亚</div>
</body>

</html>